/**  
* @Title: MessageService.java  
* @Description: TODO(用一句话描述该文件做什么)  
* @author 张鑫
* @phone 17561783855  
* @date 2019年7月29日  
*/
package com.fortune.rainshine.system.service;

import java.util.List;
import java.util.Map;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.fortune.rainshine.config.FeignConfig;
import com.fortune.rainshinecommon.base.MsgModel;
import com.fortune.rainshinecommon.base.ParmsModel;
import com.fortune.rainshinecommon.model.service.MessageModel;

/**  
* @ClassName: MessageService  
* @Description: TODO(这里用一句话描述这个类的作用)  
* @author 张鑫
* @phone 17561783855
* @date 2019年7月29日  
*    
*/
@FeignClient(value = "rain-shine-service",configuration = FeignConfig.class)
@RestController
public interface MessageService {
	
	@RequestMapping(value = "/message/list", method = RequestMethod.POST)
	MsgModel list(@RequestBody ParmsModel parm);

	@RequestMapping(value = "/message/updateState", method = RequestMethod.POST)
	void updateState(Integer id);

	@RequestMapping(value = "/message/findByid", method = RequestMethod.POST)
	MessageModel findByid(Integer id);

	@RequestMapping(value = "/message/selectCount", method = RequestMethod.POST)
	Map<String, Integer> selectCount(Integer userId);

	@RequestMapping(value = "/message/changeStates", method = RequestMethod.POST)
	MsgModel changeStates(String ids);

	@RequestMapping(value = "/message/del", method = RequestMethod.POST)
	MsgModel del(String ids);

}
